package ao.ai.ml.algo.supervised.regression.linear.non_parametric;

import ao.ai.ml.algo.supervised.model.example.Example;
import ao.ai.ml.algo.supervised.model.hypothesis.ext.RegressionHypothesis;
import ao.ai.ml.algo.supervised.regression.model.RegressionLearner;
import ao.ai.ml.model.feature_set.ext.num.NumericalFeatureList;
import ao.ai.ml.model.feature_set.ext.num.SingleNumericalFeature;

import java.util.List;

/**
 * User: aostrovsky
 * Date: 4-Feb-2010
 * Time: 8:53:27 AM
 */
public class LocallyWeightedRegression
        implements RegressionLearner
{
    //--------------------------------------------------------------------
    @Override
    public RegressionHypothesis learn(
            List<? extends Example<? extends NumericalFeatureList,
                                   ? extends SingleNumericalFeature>>
                    data)
    {
        return new LocallyWeightedHypothesis( data );
    }


    //--------------------------------------------------------------------
    @Override
    public String toString()
    {
        return "Locally Weighted Regression";
    }
}
